home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 31
/
Aminet 31 (1999)(Schatztruhe)[!][Jun 1999].iso
/
Opus5.5
/
ARexx.lha
/
ARexx
/
DupeCheck.dopus5
< prev
next >
Wrap
Text File
|
1996-07-19
|
1KB
|
56 lines
/*
$VER: DupeCheck.dopus5 1.2 (4.7.96)
Written by Edmund Vermeulen (edmundv@grafix.xs4all.nl).
ARexx script for Directory Opus 5 to select all entries in the source
lister that already exist in the destination lister (a.k.a. dupes).
Function : ARexx DOpus5:ARexx/DupeCheck.dopus5 {Qp}
*/
parse arg portname
if portname='' then
portname='DOPUS.1'
address value portname
options results
options failat 21
lister query source
if rc>0 then do
dopus request '"No source selected." OK'
exit
end
parse var result srchandle .
lister query dest
if rc>0 then do
dopus request '"No destination selected." OK'
exit
end
parse var result desthandle .
lister set srchandle busy on
lister set desthandle busy on
lister query srchandle numselentries
selected=result
lister query desthandle entries stem entry.
do i=0 to entry.count-1
lister select srchandle '"'entry.i'"' on
end
lister refresh srchandle
lister query srchandle numselentries
selected=result-selected
lister set srchandle busy off
lister set desthandle busy off
if selected=1 then
word='entry'
else
word='entries'
dopus request '"'selected 'duplicate' word 'selected." OK'